<template>
    <div class="login-root">
        <h1 class="title">你好，面粉!</h1>
        <span class="icon">
            <span class="fa fa-weibo"></span>
            <p>微博登录</p>
        </span>
        <span class="icon">
            <span class="fa fa-qq"></span>
            <p>QQ登录</p>
        </span>
        <span class="icon">
            <span class="fa fa-weibo"></span>
            <p>腾讯微博</p>
        </span>

        <div class="fenge">
            <span></span>
            <span>使用面包账号登录</span>
            <span></span>
        </div>

        <router-link to="/hunter/login/byphone" class="fangshi mobile">
            <span>通过手机号码登录</span>
        </router-link>
            
        <div class="fangshi">
            <span>面包用户名或邮箱登录</span>
        </div>

        <div class="select">
            <router-link to="">忘记密码</router-link>
            <router-link to="/hunter/login/regist">注册账号</router-link>
        </div>
    </div>
</template>

<script>
import {mapState} from 'vuex';
export default {
    mounted:function(){
        this.$store.commit("setIsLoading",false);
    }
}
</script>

<style scoped>
.login-root{
    width: 100vw;
    height: 100vh;
    background-color: #4abdcc;
    color: #fff;
    font-weight: 300;
    text-align: center;
    overflow: hidden;
}
.title{
    margin: 0;
    padding-top: 12vh;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 9vh;
}
.icon{
    display: inline-block;
    width: 25vw;
    padding: 0 2vw;
}
.icon span{
    font-size: 2.2rem;
}
.icon p{
    font-size: 0.7rem;
    margin-bottom: 0;
}
.icon:nth-of-type(2){
    border-left: 1px solid hsla(0, 0%, 100%, .3);
    border-right: 1px solid hsla(0, 0%, 100%, .3);
    padding: 0 5vw;
}
.fenge{
    margin-top: 16vh;
    margin-bottom: 4vh;
}
.fenge span:nth-of-type(1),.fenge span:nth-of-type(3){
    display: inline-block;
    width: 19vw;
    height: 1px;
    background-color: #A5DEE6;
}
.fenge span:nth-of-type(2){
    padding: 0 4vw;
    font-size: 0.8rem;
    color: #A5DEE6;
    position:relative;
    top: 0.8vw;
}
.fangshi{
    border: 1px solid #fff;
    border-radius: 30px;
    width: 80vw;
    margin: 0 auto;
    margin-bottom: 2.6vh;
    padding: 3.1vw 0;
}
.mobile{
    display:block;
    background-color: #fff;
    color: #4abdcc;
}
.select{
    border-top: 1px solid #A5DEE6;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 50px;
    display: flex;
}
.select a{
    display: inline-block;
    width: 50vw;
    font-size: 0.9rem;
    line-height: 50px;
    color:#fff;
}
.select a:nth-of-type(1){
    border-right: 1px solid #A5DEE6;
}
</style>